package com.imooc.springboot.dubbo.nilinili.entity.dto;

import lombok.*;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Getter
@Setter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Validated
public class UserDTO implements Serializable {
    private String userId;
    @NotBlank(message = "昵称不能为空")
    private String nick;
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "签名不能为空")
    private String signature;
    @NotBlank(message = "头像不能为空")
    private String userAvatar;
    private String photoCounts;
    private String collectionCounts;
    private String fanCounts;
    private String followCounts;
    private String approvalCounts;
    private String token;
}
